home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload Trio 2 / Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO / dir34 / fill402.zip / FILL.DOC < prev    next >
Text File  |  1994-02-06  |  15KB  |  299 lines

  1. FILL.DOC
  2. 02/06/94
  3.  
  4. The FILL program is designed to help you move or copy files off a hard disk
  5. while reducing the amount of wasted space on the destination disks.  Internally,
  6. it does this by sorting the file names so the largest files are moved/copied
  7. first.  It then moves or copies whatever files can fit on the floppy, skipping
  8. any that can't.  Features:
  9.  
  10.   * Can either move or copy the files to the resulting location
  11.   * Can go onto to multiple diskettes as desired, beeping if desired when
  12.     the next disk is expected
  13.   * Can move the files in file name order or any of standard ordering
  14.     categories
  15.   * Can be used to split up files which are too big to fit on a single disk
  16.   * Can create a status/transaction file for you, showing what was copied/moved
  17.   * Can label the output diskette, providing some patterns like sequence numbers
  18.     and dates which it will fill in for you
  19.   * Some times useful for network transfers where standard MOVE command doesn't
  20.     always work
  21.   * Can review and delete if desired any files which are already in the
  22.     output destination (e.g. already on the output diskette)
  23.   * Can reformat the whole disk if files are going to drive A or B
  24.  
  25. Some of the default values for this routine can be set using the CONFIGWS.EXE
  26. program contained in FILLymm.ZIP.
  27.  
  28. Limits:
  29.   * Routine can only process the first 500 files in a given subdirectory.  It
  30.     ignores the rest of them.
  31.   * Routine can only review for deletion the first 200 files in the output
  32.     location.
  33.   * Routine does not provide any cool write-error recovery.  If it finds a DOS
  34.     error on the output drive, it just stops.
  35.   * Routine will not format the output diskette for you.
  36.   * Routine's continual testing for new diskette (/CONTINUAL) only works if the
  37.     diskette was formatted using DOS 4.0 or later.  That's the version that
  38.     puts volume sequence numbers on the diskettes.  One way to insure this if
  39.     you're using the newer versions of DOS is to do a quick-reformat of your
  40.     floppies whenever you'd normally do a DEL A:*.*.  I do this with a QDR.BAT
  41.     command that has the following:
  42.  
  43.         FORMAT %1 /Q /U /V:Bruce
  44.  
  45.     I then say "QDR A:" or "QDR B:".  It invokes an unconditional quick format
  46.     and applies a volume label on the diskette (to avoid the prompt).  If the
  47.     diskette does not have a sequence number, DOS tells you it can't be
  48.     quick-formatted and asks if it can do the full format instead.
  49.  
  50.  
  51.  
  52. Syntax:
  53.  
  54.     FILL [ source-filespec ] [ dest-drive: | dest-drive:\path\ ]
  55.       [ /MOVE | /COPY ] [ /PROMPT | /-PROMPT ]
  56.       [ /OVERWRITE | /-OVERWRITE | /OVERSKIP | /OVERASK ]
  57.       [ /Ox | /O-x ] [ /Xfilespec ]... [ /WIPE | /-WIPE ] [ /MULTI | /SINGLE ]
  58.       [ /SPLIT ] [ /LABEL=label [ /START=n ] ] [ /Fstatfile [ /S+ | /S- | S* ]
  59.       [ /CONTINUAL ] [ /BEEP | /-BEEP ] [ /Q ] [ /? ]
  60.  
  61. where:
  62.  
  63. "source-filespec" is the file specification for what you want to move.  You can
  64. specify a drive and path and file wildcards if necessary (e.g.  "C:\TEMP\*.BAT")
  65. but otherwise it defaults to your default drive and directory and takes "*.*".
  66. Note that the program cannot handle any request for more than 500 files at a
  67. time.
  68.  
  69. "dest-drive:" or dest-drive:\path" tells the routine what drive or path to move
  70. the files to.  In many cases, the routine doesn't really care whether the source
  71. specification precedes or follows the destination specification.  If either
  72. parameter ends with a colon (e.g.  "A:") or slash (e.g.  "C:\QB45\"), the
  73. routine will presume that's the destination specification and the other one must
  74. be the source specification.  If either parameter contains a wildcard, the
  75. routine will presume that's the source specification and the other one must be
  76. the destination specification.  So "FILL A:  *.BAS" is the same as "FILL *.BAS
  77. A:".  The default destination drive (dest-drive:, not dest-drive:\path) can be
  78. set by using the CONFIGWS.EXE program.  The original default is "A:".
  79.  
  80. "/MOVE" says to move the files instead of copying them.  The default value for
  81. this option can be set by using the CONFIGWS.EXE program.  The original default
  82. is "/MOVE".
  83.  
  84. "/COPY" says to copy the files instead of moving them.  The default value for
  85. this option can be set by using the CONFIGWS.EXE program.  The original default
  86. is "/MOVE".
  87.  
  88. "/PROMPT" says to prompt for each filename before moving it.  The default value
  89. for this option can be set by using the CONFIGWS.EXE program.  The original
  90. default is "/-PROMPT".
  91.  
  92. "/-PROMPT" says to not prompt for each file.  The default value for this option
  93. can be set by using the CONFIGWS.EXE program.  The original default is
  94. "/-PROMPT".
  95.  
  96.  
  97. "/OVERWRITE" says to overwrite same-named files in the destination path.  The
  98. default value for this option can be set by using the CONFIGWS.EXE program.  The
  99. original default is "/OVERSKIP".
  100.  
  101. "/-OVERWRITE" says to abort if any same-named files are found in the destination
  102. path.  The default value for this option can be set by using the CONFIGWS.EXE
  103. program.  The original default is "/OVERSKIP".
  104.  
  105. "/OVERSKIP" says to skip any file that already exists in the destination path.
  106. The counts aren't accurate in this case.  The default value for this option can
  107. be set by using the CONFIGWS.EXE program.  The original default is "/OVERSKIP".
  108.  
  109. "/OVERASK" says to prompt if same-named files exist in the destination
  110. directory.  The default value for this option can be set by using the
  111. CONFIGWS.EXE program.  The original default is "/OVERSKIP".
  112.  
  113. "/Ox" and "/O-x" allow you to specify the copy order for the files.  "x" can be
  114. one of the following:
  115.  
  116.         N = file name
  117.         D = file date and time
  118.         S = file size
  119.  
  120. If you precede the "x" with a dash ("-"), the sort will be done in reverse
  121. order.  Note that this parameter does not determine which files are copied; it
  122. only determines what order they are actually copied.  Since the order that the
  123. file tends to show up in a DOS DIR listing is based on creation order, this
  124. sequence may be relevant to how the files ultimately show up.  The default value
  125. for this option can be set by using the CONFIGWS.EXE program.  The original
  126. default is "/ON".
  127.  
  128. "/Xfilespec" says to exclude certain filespecs from being moved.  You can
  129. specify up to 10 exclusion parameters but each must have their own /Xfilespec
  130. statement.  For example, to move all files except those with a BAS extension,
  131. you could say "FILL /X*.BAS".
  132.  
  133.  
  134. "/WIPE" says that if the destination drive has files on it, prompt the user
  135. for whether these files should be deleted or not.  Six sub-options show up in
  136. this case:
  137.  
  138.     Do *NOT* delete the x file(s)    Don't delete anything
  139.     List file(s)                     List the files but don't delete any of
  140.                                      them.  The user will be reprompted for
  141.                                      these four options after pressing a key.
  142.     Select file(s) to delete         List the files and allow the user to
  143.                                      select any to be deleted.  Keys:
  144.                                         * Cursor keys -- move among list
  145.                                         * Space       -- select that file
  146.                                         * Ctrl-Enter  -- select all files
  147.                                         * Ctrl-bs     -- deselect all files
  148.                                         * Enter       -- process those tagged
  149.                                         * Esc         -- skip processing
  150.                                      After pressing Enter, the selected files
  151.                                      will be deleted.  You will then get the
  152.                                      standard four prompts again.
  153.     Delete all file(s)               Delete all files in the specified
  154.                                      directory.  Subdirectory files will not
  155.                                      be deleted.
  156.     Reformat the diskette            If your output drive is either A or B,
  157.                                      the program will shell to DOS and execute
  158.                                      a "FORMAT d:" command.  This (and the
  159.                                      next) sub-option will result in the
  160.                                      subdirectories being eliminated, something
  161.                                      which the prior sub-options don't do for
  162.                                      you.
  163.     Quick-reformat the diskette      If your output drive is either A or B
  164.                                      and you're running under DOS 5.0 or higher,
  165.                                      the program will shell to DOS and execute
  166.                                      a "FORMAT d: /Q" command.
  167.  
  168. The default value for this option (/WIPE vs /-WIPE) can be set by using the
  169. CONFIGWS.EXE program. The original default is "/-WIPE".
  170.  
  171. "/-WIPE" reverses /WIPE.  The default value for this option can be set by using
  172. the CONFIGWS.EXE program.  The original default is "/-WIPE".
  173.  
  174. "/MULTI" says to go to a second disk if all of the files can't fit on the first
  175. diskette.  The default value for this option can be set by using the
  176. CONFIGWS.EXE program.  The original default is "/MULTI".
  177.  
  178. "/SINGLE" says process only one diskette at a time and to not prompt for the
  179. next diskette once the first gets filled up.  The default value for this option
  180. can be set by using the CONFIGWS.EXE program.  The original default is "/MULTI".
  181.  
  182.  
  183. "/SPLIT" says to split up large files which otherwise would not be able to fit
  184. onto the output disk.  For example, /SPLIT is useful when you have a 1.8MB file
  185. that you're trying to copy or move to a 1.2MB or 1.44MB diskette.  Files are
  186. split only if an empty diskette in the output destination would not be able to
  187. support the file; it will not split up a 800KB file just because the 1.2MB
  188. output diskette only has 600KB free.  Files will be given the extensions of
  189. .001, .002, etc until all necessary splitting is accomplished.  To put them back
  190. together again, use the DOS COPY copy with the /B option.  For example:
  191.  
  192.         COPY TEST.001/B+TEST.002/B TEST.ZIP
  193.  
  194. "/LABEL=label" specifies the volume label to be written to the output disk.
  195. By default, the label is not changed.  The label can be a quoted mixed-case
  196. string.  It can contain several replacable lowercase only parameters: "mm" is
  197. replaced with the two-digit month, "dd" is replaced with the two-digit day, "yy"
  198. is replaced with the two-digit year, and "n" or "nn" or "nnn" is replaced by the
  199. sequence number of the disk.  All numeric fields are padded to the left with
  200. zeroes as necessary.  If the current date is November 7, 1993:
  201.  
  202.         /LABEL="BKyymmdd nn"
  203.  
  204. will label the first first "BK931107 01", the second disk "BK931107 02" etc.
  205. Note that labels can be no longer than 11 characters in length.  All characters
  206. except the replacable parameters will be translated to uppercase characters.
  207.  
  208. "/START=n" specifies the first sequence number to use in place of "n", "nn", or
  209. "nnn" in the /LABEL parameter.  Defaults to "/START=1".
  210.  
  211. "/Fstatfile" specifies the name of a status file to be used.  This status file
  212. is a text file that reports on what's been processed by the program.  If it
  213. exists already, the status file is appended to, not overwritten.  A sample of
  214. some lines from the status file using the /S* option (which is not the default):
  215.  
  216.   FILL results for  /copy *.exe /ftest.txt /beep /wipe /s* /split
  217.   Being run on 11-07-1993 at 17:58:10
  218.  
  219.   Label        FileName    Date     Time                Size Operation
  220.  
  221.   TEST93 #01   AV.EXE       09/29/93 00:50:58          70,282 SKIP
  222.   TEST93 #01   BC.EXE       08/19/92 23:59:00         150,562 SKIP
  223.   TEST93 #01   BFIND.EXE    08/02/93 23:07:08          60,016 SKIP
  224.   TEST93 #01   VBDOS.EXE    08/19/92 23:59:00         555,520 COPY
  225.  
  226.   BRUCE        AV.EXE       09/29/93 00:50:58          70,282 SKIP
  227.   BRUCE        BC.EXE       08/19/92 23:59:00         150,562 SKIP
  228.   BRUCE        BFIND.EXE    08/02/93 23:07:08          60,016 SKIP
  229.  
  230. "/S+" specifies that the only files to be written to the status file are those
  231. files that actually get copied/moved.  This is the default.
  232.  
  233. "/S-" specifies that the only files to be written to the status file are those
  234. files that did not get copied/moved.  Since the skipping is determination is
  235. done with each disk, the status file may show the same file name as "SKIP" over
  236. and over again.
  237.  
  238.  
  239. "/S*" specifies that the status report should contain all files copied/moved as
  240. well as skipped.  This can be a huge report.
  241.  
  242. "/CONTINUAL" is used if you want the routine to continually check your floppy
  243. drive to see when a new diskette has been put in and continue once it recognizes
  244. this has happened.  The only time you'd have to press a key is if you want to
  245. stop processing diskettes (in which case you'd press Escape).  This option is
  246. only available if you're using DOS 4.0 or higher and only works for disks that
  247. have been formatted using DOS 4.0 or higher (it uses the serial number on the
  248. disk in order to determine that the disk has been replaced).
  249.  
  250. "/BEEP" says to beep once the routine is done doing its thing (a high tone
  251. followed by a low one).  It will also beep whenever it's time to stick in a new
  252. diskette (a low tone followed by a high one).  The default value for this option
  253. can be set by using the CONFIGWS.EXE program.  The original default is "/BEEP".
  254.  
  255. "/-BEEP" says to not beep upon completion.  The default value for this option
  256. can be set by using the CONFIGWS.EXE program.  The original default is "/BEEP".
  257.  
  258. "/Q" turns off the file-by-file status reporting.
  259.  
  260. "/?" or "/HELP" or "HELP" gives you the syntax of the command.  All current
  261. defaults that can overwritten by using the CONFIGWS.EXE routine are also shown.
  262.  
  263.  
  264. Return codes:
  265.  
  266. FILL returns the following ERRORLEVEL codes:
  267.         0 = no problems, all files copied
  268.         1 = no problems, but some files skipped since /-MULTI
  269.       253 = had problems copying/moving the files
  270.       254 = no files found to copy/move
  271.       255 = syntax problems, or /? requested
  272.  
  273.  
  274. Author:
  275.  
  276. This program was written by Bruce Guthrie of Wayne Software.  It is free for use
  277. and redistribution provided relevant documentation is kept with the program, no
  278. changes are made to the program or documentation, and it is not bundled with
  279. commercial programs or charged for separately.  People who need to bundle it in
  280. for-sale packages must pay a $50 registration fee to "Wayne Software" at the
  281. following address.
  282.  
  283. Additional information about this and other Wayne Software programs can be found
  284. in the file BRUCEymm.DOC which should be included in the original ZIP file.
  285. ("ymm" is replaced by the last digit of the year and the two digit month of the
  286. release.  BRUCE312.DOC came out in December 1993.  This same naming convention
  287. is used in naming the ZIP file that this program was included in.) Comments and
  288. suggestions can also be sent to:
  289.  
  290.                 Bruce Guthrie
  291.                 Wayne Software
  292.                 113 Sheffield St.
  293.                 Silver Spring, MD 20910
  294.  
  295.                 fax: (301) 588-8986
  296.  
  297. Foreign users:  Please provide an Internet address in all correspondence.
  298.  
  299.